cmake_minimum_required(VERSION 3.0.0)

# 设置c++11标准
set(CMAKE_CXX_STANDARD 11)
# CMAKE_CXX_STANDARD设置的标准版本是否强制要求
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 阻止msvc unicode警告
add_compile_options("$<$<AND:$<CXX_COMPILER_ID:MSVC>,$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,18.99>>:/wd4819;/UTF-8>")

project(rxcpptest LANGUAGES CXX VERSION 0.1.0)
# include(CTest)
# enable_testing()

add_executable(rxcpptest main.cpp)

set(LIBRXCPP_DIR "D:\\RxCpp\\Rx\\v2\\src")
target_include_directories(rxcpptest PRIVATE ${LIBRXCPP_DIR})


set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
# include(CPack)
